package com.big.model.model.merchandise;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.*;


/**
 * 商品秒杀
 */
@Data
@ApiModel(value = "商品秒杀")
@TableName("merchandise_spike")
public class MerchandiseSpike {

    @TableField(value = "id")
    private  Long did;

    @TableField(value = "status")
    private  Integer status;

    @TableField(value = "start_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private  Date startTime;

    @TableField(value = "end_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:dd:mm")
    private  Date endTime;


    @ApiModelProperty(value = "其他参数")
    @TableField(exist = false)
    private Map<String,Object> param = new HashMap<>();

}
